<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>

<html>
<head>
    <title>请假-自定义表单</title>
    <link href="/bootstrap/css/bootstrap.css" rel="stylesheet">
    <script src="/js/jquery.js"></script>
    <script src="/bootstrap/js/bootstrap.min.js"></script>
    <link href="/bootstrap/css/datepicker3.css" rel="stylesheet">
    <script src="/bootstrap/js/bootstrap-datepicker.js"></script>
    <script src="/bootstrap/js/bootstrap-datepicker.zh-CN.js"></script>
    <script type="text/javascript">
        $(function () {
            $("[time='true']").datepicker({
                format: "yyyy-mm-dd",
                language: "zh-CN",
                clearBtn: true,
                todayHighlight: true,
                autoclose: true,
                todayBtn: "linked"
            });
        });
        $(function () {
            $("[name='showImage']").click(function () {
                var processInstanceId = $(this).attr("processInstanceId");
                $("#taskImageLocation").html("<img src=/task/image/"+processInstanceId+">");
            });
        });
    </script>
</head>

<body>
<jsp:include page="/common/top.jsp"></jsp:include>
<div class="container">
<h1>请假-自定义表单</h1>
<br>
<div class="panel panel-default">
    <form action="/lc01test/saveBusinessInfo" method="post">
    <%--<input type="hidden" name="processKey" value="121212">--%>
    <div class="panel-heading">
        <h3 class="panel-title">业务表单</h3>
    </div>
    <div class="panel-body">
     <input type="hidden" name="processInstanceId" value="${processInstanceId}">
     <input type="hidden" name="taskId" value="${taskId}">
     <input type="hidden" name="id" value="${businessInfo.id}">
        <table class="table table-striped">
        <tr>
         <td>业务名称</td>
         <td>负责人</td>
         <td>验收人</td>
         <td>开始时间</td>
         <td>结束时间</td>
         <td>操作</td>
        </tr>
        <c:forEach items="${businessInfos}" var="businessInfo">
	        <tr>
	           <td>${businessInfo.businessName}</td>
	           <td>${businessInfo.resp_person_id}</td>
	           <td>${businessInfo.rece_person_id}</td>
	           <td>${businessInfo.startTime}</td>
	           <td>${businessInfo.endTime}</td>
	           <td><a class="btn btn-default" href="#" processId="${businessInfo.id}" >修改</a></td>
	        </tr>
        </c:forEach>
         
        </table>
    </div>
    <div class="panel-footer">
        <button type="button" class="btn btn-default">取消</button>

        <button type="submit" class="btn btn-success">提交</button>

    </div>
    </form>
</div>
</div>
</body>
</html>
